<?php
session_start();
include_once "lib/config.php";
include_once "lib/pdomanager.php";

include_once "lib/functions.php";

DB::$dbname=DBNAME;
DB::$hostname=HOST;
DB::$dbusername=USERNAME;
DB::$dbpassword=PASSWORD;
DB::$dbtype=TYPE;
DB::$portnumber=PORTNUMBER;

DB::connect();

$userid=$_SESSION['u_id'];

$user_details=DB::fetch_array(DB::query("select users.*,user_type from users,user_types where users.user_type=user_types.id and users.id='".$_SESSION['u_id']."' "));

if($heirarchyteamfield[$user_details[0]['user_type']]=="admin")
{
    $exe_query=DB::fetch_array(DB::query("select full_name,email_id from users,user_types where users.user_type=user_types.id and user_type='Staff' "));
}
else
{
    $exe_query=array();
}

$data=array();
for($i=0;$i<count($exe_query);$i++)
{
	$data[$exe_query[$i]['full_name']."(".$exe_query[$i]['email_id'].")"] =$exe_query[$i]['email_id'];
}
//
//echo "<pre>";
//print_r($data);
	   
?>